TARGET=hello.exe
OBJS:=$(patsubst %.cpp, %.o, $(wildcard *.cpp))
CXX=i586-mingw32msvc-g++
TARGET: $(OBJS)
	$(CXX) $(notdir $(OBJS)) -o $(TARGET) -mconsole
$(OBJS): %.o: %.cpp
	$(CXX) -c $(CFLAGS) $< -o $@ $(LDFLAGS) -mconsole
print:
	echo OGRE 
.PHONY:clean
clean:
	rm -rf $(notdir $(OBJS)) $(TARGET) *~
